﻿<phone:PhoneApplicationPage 
    x:Class="AuchanScan.Views.MaVoiturePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit.Own"
    xmlns:Microsoft_Phone_Controls_Maps="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">  
  
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Margin="0,0,0,-13">
      <Grid.Background>
        <ImageBrush Stretch="Fill" ImageSource="/images/Page_Background.png" />
      </Grid.Background>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Margin="12,0,12,0">
        	<Grid d:LayoutOverrides="Width, Height" Margin="12,0">
        		<Microsoft_Phone_Controls_Maps:Map x:Name="MyMap" ZoomLevel="14"
        			CredentialsProvider="AkWDwJ45XSHt5lG4Q5iZ5P6zINhrkM9eEunfOs-t-pTEx53wK14uz5R6s15LI4Ra" RenderTransformOrigin="0.5,0.5" Grid.Row="1">
        			<Microsoft_Phone_Controls_Maps:Pushpin Location="{Binding CenterMap}" />
        			<Microsoft_Phone_Controls_Maps:Pushpin Location="{Binding VoitureMap}" />

        			<!--Template="{StaticResource CenterPushpinControlTemplate}"-->

        		</Microsoft_Phone_Controls_Maps:Map>
        		<Button Content="Mémoriser la position de ma voiture" Click="SavePosition_Click" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,75" Background="#FFF9F9F9" BorderBrush="{x:Null}" Foreground="Black" />
        	</Grid>
        </Grid>
        <Image Height="64" Source="/images/herbe.png" Stretch="Fill" VerticalAlignment="Bottom" Margin="0,0,0,8"/>
        <Rectangle Fill="{StaticResource AccentBrushMagasin}" Height="8" VerticalAlignment="Bottom"/>
    </Grid>
</phone:PhoneApplicationPage>
